module.exports = {
  base: '/docs/',
  title: '前端知识体系',
  description: '基础规范、流程、架构',
  head: [
    [
      // 设置 favicon.ico，注意图片放在 public 文件夹下
      'link',
      { rel: 'icon', href: 'favicon.ico' },
    ],
  ],
  themeConfig: {
    nav: [
      {
        text: '基础指南',
        items: [
          { text: '环境搭建', link: '/base-guide/set-dev-env/' },
          { text: '技术选型', link: '/base-guide/tech-selection/' },
        ],
      },
      {
        text: '基础规范',
        items: [
          { text: 'JavaScript 规范', link: '/base-specs/js/' },
          { text: 'Vue 代码风格指南', link: '/base-specs/vue/' },
          { text: 'CSS 规范', link: '/base-specs/css/' },
          { text: '代码注释规范', link: '/base-specs/comment/' },
          { text: '代码提交规范', link: '/base-specs/commit/' },
          { text: '代码校验与自动格式化配置', link: '/base-specs/vscode/' },
        ],
      },
      {
        text: '技术生态',
        items: [
          { text: 'Vue', link: '/tech-system/vue/' },
          { text: 'uni-app', link: '/tech-system/uni-app/' },
        ],
      },
      { text: '常见问题', link: '/problem/' },
    ],
    sidebarDepth: 2,
    sidebar: {
      '/base-guide/set-dev-env/': [''],
      '/base-guide/tech-selection/': [''],
      '/problem/': [''],
      '/base-specs/css/': [''],
      '/base-specs/js/': [''],
      '/base-specs/vue/': [''],
      '/base-specs/vscode/': [''],
      '/base-specs/comment/': [''],
      '/base-specs/commit/': [''],
      '/tech-system/vue/': [''],
      '/tech-system/uni-app/': [''],
      '/study/create-app/': [''],
      '/': [''],
    },
  },
  plugins: ['@vuepress/medium-zoom', true],
}
